home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1994 November / Cd Ware (Nro. 2) - Epimundo.iso / DOS / PG / STRX.ZIP / REGX.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-16  |  923 b   |  40 lines

  1. //
  2. // regx.h   : regular expression class interface
  3. // Author  : Roy S. Woll
  4. //
  5. // Copyright (c) 1993 by Roy S. Woll
  6. // You may distribute this source freely as long as you leave all files
  7. // in their original form, including the copyright notice as is.
  8. //
  9. // Version 2.1      12/10/92   Add copy constructor
  10. // Version 2.0      12/1/92
  11. //
  12. #ifndef _REGX_H
  13. #define _REGX_H
  14.  
  15. class regXimp;
  16.  
  17. #include <_defs.h>
  18.  
  19. class _CLASSTYPE regX{
  20.     regXimp * imp;
  21.  
  22. public:
  23.    regX(void);
  24.    regX(const regX&);
  25.    regX(const char * regexp);
  26.    ~regX(void);
  27.    
  28.    regX& operator=(const char * regexp);
  29.    regX& operator=(const regX&);
  30.  
  31.    int index(const char * searchStr, int * matchLenPtr, 
  32.              int start=0, int p_caseSensitive=1) const;
  33.    int indexr(const char * searchStr, int * matchLenPtr, 
  34.              int start=0, int p_caseSensitive=1) const;
  35.  
  36.    int error(void) const;
  37. };
  38.  
  39. #endif
  40.